package com.hezuti.sns.domain;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * sns 产品信息表
 * @author douxiaoyu
 */
@Entity
@Table(name = "product")
public class Product {
	public final static String FIELD_PID="id";
	public final static String FIELD_PNAME="pName";
	public final static String FIELD_PICO="pIco";
	public final static String FIELD_AUTHID="authId";

	
	/**没有通过审核*/
	public final static int STATE_NOT_PUBLISH=-1;
	/**公测*/
	public final static int STATE_OUTTER_TEST=1;
	/**上线：全部用户*/
	public final static int STATE_ONLINE_FREE=2;
	/**上线：vip 用户*/
	public final static int STATE_ONLINE_VIP=3;
	/**上线：收费*/
	public final static int STATE_ONLINE_ORDER=4;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;
	
	/**应用名称*/
	@Column(nullable=false)
	private String pName;
	/**应用Ico 地址*/
	private String pIco;
	
	/**请求地址*/
	private String pUrl;
	
	/**应用简单介绍*/
	private String pInfo;
	
	/**应用  状态*/
	private int state;
	
	/**应用作者-id*/
	private int authId;
	
	/**应用开通时间*/
	private Date ctime;
	
	
	public String getpInfo() {
		return pInfo;
	}

	public void setpInfo(String pInfo) {
		this.pInfo = pInfo;
	}

	public String getpIco() {
		return pIco;
	}

	public void setpIco(String pIco) {
		this.pIco = pIco;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getpName() {
		return pName;
	}

	public void setpName(String pName) {
		this.pName = pName;
	}



	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public int getAuthId() {
		return authId;
	}

	public void setAuthId(int authId) {
		this.authId = authId;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public String getpUrl() {
		return pUrl;
	}

	public void setpUrl(String pUrl) {
		this.pUrl = pUrl;
	}
	

}
